package com.learn.api;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @auther liuhw
 * @date 2019/11/19 17:25
 * @description: dubbo 服务提供者的启动类
 * @since 1.0
 **/
public class DubboProviderMain {
    public static void main(String[] args) throws IOException {
        System.setProperty("java.net.preferIPv4Stack", "true");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-provider.xml");
        context.start();
        System.out.println("Provider started.");
        System.in.read(); // press any key to quit
    }
}
